package cn.tedu._04interceptor.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "用户管理模块")
@RestController
@RequestMapping("/v1/user/")
public class UserController {
    @GetMapping("login")
    @ApiOperation("登录功能")
    @ApiOperationSupport(order = 10)
    public String login() {
        return "登录成功";
    }
    @GetMapping("reg")
    @ApiOperation("注册功能")
    @ApiOperationSupport(order = 20)
    public String reg() {
        return "注册成功";
    }
    @GetMapping("change")
    @ApiOperation("修改功能")
    @ApiOperationSupport(order = 30)
    public String change() {
        return "修改成功";
    }

}
